<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>脚部</title>
    <link rel="stylesheet" href="/CSS/2.通用样式.css">
    <link rel="stylesheet" href="/CSS/爱采购/iconfont.css">
    <style>
        body {
            font-size: 14px;
            z-index: 10;
        }

        footer {
            display: flex;
            width: 80%;
            height: 48px;
            position: fixed;
            bottom: 0;
            border: 1px solid lightgrey;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            padding: 5px;
            left: 0;
            right: 0;
            margin: 0 auto;
        }

        footer label {
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }

        footer input {
            display: none;
        }
        footer label .图形{
            width: 24px;
            height: 20px;
        }

        footer input:checked~p, footer input:checked~span{
            color: red;
        }

    </style>
</head>



<body>





    <footer>
        <label for="首页">
            <input checked name="底部" id="首页" type="radio">
            <p class="图形"><span class="iconfont icon-shouye1"></span></p>
            <span>首页</span>
        </label>

        <label for="询价">
            <input name="底部" id="询价" type="radio">
            <p class="图形"><span class="iconfont icon-chaxun"></span></p>
            <span>询价</span>
        </label>

        <label for="消息">
            <input name="底部" id="消息" type="radio">
            <p class="图形"><span class="iconfont icon-xiaoxi1"></span></p>
            <span>消息</span>
        </label>

        <label for="我的">
            <input name="底部" id="我的" type="radio">
            <p class="图形"><span class="iconfont icon-wodedefuben"></span></p>
            <span>我的</span>
        </label>

    </footer>

</body>

</html>